package com.jeasonzhao.report.codes;

import com.jeasonzhao.commons.basic.IntegerPair;

public final class ReportHeaderModes extends IntegerPair
{
    private static final long serialVersionUID = 1L;
    public static final ReportHeaderModes Default = new ReportHeaderModes(0,"Default",null);
    public static final ReportHeaderModes Custom = new ReportHeaderModes(1,"Custom","customize");
    public static final ReportHeaderModes CustomBeforeDefault = new ReportHeaderModes(2,"CustomBeforeDefault","before,top,prev,first");
    public static final ReportHeaderModes CustomAfterDefault = new ReportHeaderModes(2,"CustomAfterDefault","after,below,next,bottom");
    public int hashCode()
    {
        return super.hashCode();
    }

    protected ReportHeaderModes(int nId,String strName,String str)
    {
        super(nId,strName);
    }

    public boolean isDefault()
    {
        return this.equals(Default);
    }

    public boolean isCustomized()
    {
        return this.equals(Default) == false;
    }

    public static ReportHeaderModes fromName(String str)
    {
        return(ReportHeaderModes) IntegerPair.findConstant(ReportHeaderModes.class,str,Default);
    }
}
